﻿using UnityEngine;

namespace Core.Setting
{
    /// <summary>
    /// 分辨率
    /// 
    /// Screen.SetResolution(1280, 720, true, 60);
    /// </summary>
    public class ResolutionSetting : AbstractSettingItem, IAwake
    {
        public Vector2 Original { get; private set; }
        public Vector2 Curr { get; private set; }

        public override void Awake()
        {
            var resolution = Screen.currentResolution;
            Original = new Vector2(resolution.width, resolution.height);

            Curr = Original;
        }

        public override void Refresh()
        {
        }
    }
}
